<?php
//引入初始化文件
include '../init.php';
//引入数据库文件
include DIR_CORE . 'mysql.php';

$type_id = $_GET['type_id'];

$sql = "select * from judge where type_id = $type_id";
$res = mysqli_query($link, $sql);
$list = array();
while ($row = mysqli_fetch_assoc($res)) {
    $list[] = $row;
}

echo json_encode($list);
